//
//  MCContractContentModelsData.m
//  TLYL
//
//  Created by MC on 2017/11/9.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCContractContentModelsData.h"
#import "MCMineInfoModel.h"

@implementation MCContractContentModelsData
singleton_m(MCContractContentModelsData)

-(void)addInitModel{
    
    MCGetMyAndSubSignBounsContractDetailDataModel  * model =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
    model.BetMoneyMin = @"0";
    model.LossMoneyMin = @"0";
    model.ActivePersonNum = @"0";
    model.DividendRatio = @"0";
    
    [self.dataSource addObject:model];

//    /*
//     * 020特定需求
//     */
//    MCMineInfoModel *mineInfoModel = [MCMineInfoModel sharedMCMineInfoModel];
//    NSString *UserLevel=[NSString stringWithFormat:@"%@",mineInfoModel.UserLevel];
//
//    if ([UserLevel isEqualToString:@"2"]){
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model1 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model1.BetMoneyMin = @"0";//最小投注额
//        model1.LossMoneyMin = @"0";//最小亏损额
//        model1.ActivePersonNum = @"0";//活跃人数
//        model1.DividendRatio = @"0.25";
//        [self.dataSource addObject:model1];
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model2 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model2.BetMoneyMin = @"7500000";//最小投注额
//        model2.LossMoneyMin = @"0";//最小亏损额
//        model2.ActivePersonNum = @"0";//活跃人数
//        model2.DividendRatio = @"0.26";
//        [self.dataSource addObject:model2];
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model3 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model3.BetMoneyMin = @"9000000";//最小投注额
//        model3.LossMoneyMin = @"0";//最小亏损额
//        model3.ActivePersonNum = @"0";//活跃人数
//        model3.DividendRatio = @"0.28";
//        [self.dataSource addObject:model3];
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model4 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model4.BetMoneyMin = @"15000000";//最小投注额
//        model4.LossMoneyMin = @"0";//最小亏损额
//        model4.ActivePersonNum = @"0";//活跃人数
//        model4.DividendRatio = @"0.3";
//        [self.dataSource addObject:model4];
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model5 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model5.BetMoneyMin = @"30000000";//最小投注额
//        model5.LossMoneyMin = @"0";//最小亏损额
//        model5.ActivePersonNum = @"0";//活跃人数
//        model5.DividendRatio = @"0.32";
//        [self.dataSource addObject:model5];
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model6 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model6.BetMoneyMin = @"45000000";//最小投注额
//        model6.LossMoneyMin = @"0";//最小亏损额
//        model6.ActivePersonNum = @"0";//活跃人数
//        model6.DividendRatio = @"0.35";
//        [self.dataSource addObject:model6];
//
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model7 =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model7.BetMoneyMin = @"45000000";//最小投注额
//        model7.LossMoneyMin = @"0";//最小亏损额
//        model7.ActivePersonNum = @"0";//活跃人数
//        model7.DividendRatio = @"0.4";
//        [self.dataSource addObject:model7];
//
//
//
//    }else{
//        MCGetMyAndSubSignBounsContractDetailDataModel  * model =  [[MCGetMyAndSubSignBounsContractDetailDataModel alloc]init];
//        model.BetMoneyMin = @"0";
//        model.LossMoneyMin = @"0";
//        model.ActivePersonNum = @"0";
//
//        if ([UserLevel isEqualToString:@"1"]) {
//            model.DividendRatio = @"0.4";
//        }
//        [self.dataSource addObject:model];
//    }

}

/*
 * 增
 */
-(void)addDataSourceModel:(MCGetMyAndSubSignBounsContractDetailDataModel  *)model{
    [self.dataSource addObject:model];
}

/*
 * 删
 */
-(void)deleteDataSourceModel:(MCGetMyAndSubSignBounsContractDetailDataModel  *)model{
    [self.dataSource removeObject:model];
}

/*
 * 清空
 */
-(void)removeDataSource{
    [self.dataSource removeAllObjects];
}

-(NSMutableArray<MCGetMyAndSubSignBounsContractDetailDataModel *> *)dataSource{
    if (!_dataSource) {
        _dataSource = [[NSMutableArray alloc]init];
    }
    return _dataSource;
}

@end
